package com.zhiliang.waibao.myapplication.ui
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.widget.Toast
import com.zhiliang.waibao.myapplication.R
import com.zhiliang.waibao.myapplication.ui.adapter.ForecastListAdapter

class FActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.module_activity_ea)
        toast("longkeyou2b")
        val forecastList = findViewById(R.id.forecast_list) as RecyclerView
        forecastList.layoutManager = LinearLayoutManager(this)

    }

    fun add(x: Int, y: Int): Int {
        return x + y
    }
    fun  add01(x: Int,y: Int):Int?=x+y
    fun toast(message: String, length: Int = Toast.LENGTH_SHORT) {
        Toast.makeText(this, message, length).show()
    }

}